package home.axis2.testcase;

public class EnderecosServicePortTypeProxy implements home.axis2.testcase.EnderecosServicePortType {
  private String _endpoint = null;
  private home.axis2.testcase.EnderecosServicePortType enderecosServicePortType = null;
  
  public EnderecosServicePortTypeProxy() {
    _initEnderecosServicePortTypeProxy();
  }
  
  public EnderecosServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initEnderecosServicePortTypeProxy();
  }
  
  private void _initEnderecosServicePortTypeProxy() {
    try {
      enderecosServicePortType = (new home.axis2.testcase.EnderecosServiceLocator()).getEnderecosServiceHttpSoap11Endpoint();
      if (enderecosServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)enderecosServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)enderecosServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (enderecosServicePortType != null)
      ((javax.xml.rpc.Stub)enderecosServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public home.axis2.testcase.EnderecosServicePortType getEnderecosServicePortType() {
    if (enderecosServicePortType == null)
      _initEnderecosServicePortTypeProxy();
    return enderecosServicePortType;
  }
  
  public java.lang.Boolean addEndereco(java.lang.String cep, java.lang.String logradouro, java.lang.String bairro, java.lang.String cidade, java.lang.String estado) throws java.rmi.RemoteException{
    if (enderecosServicePortType == null)
      _initEnderecosServicePortTypeProxy();
    return enderecosServicePortType.addEndereco(cep, logradouro, bairro, cidade, estado);
  }
  
  public java.lang.Boolean valida(java.lang.String cep, java.lang.String logradouro, java.lang.String bairro, java.lang.String cidade, java.lang.String estado) throws java.rmi.RemoteException{
    if (enderecosServicePortType == null)
      _initEnderecosServicePortTypeProxy();
    return enderecosServicePortType.valida(cep, logradouro, bairro, cidade, estado);
  }
  
  public home.axis2.testcase.xsd.Endereco getEndereco(java.lang.String cep) throws java.rmi.RemoteException{
    if (enderecosServicePortType == null)
      _initEnderecosServicePortTypeProxy();
    return enderecosServicePortType.getEndereco(cep);
  }
  
  public java.lang.String getCEP(java.lang.String logradouro, java.lang.String bairro, java.lang.String estado, java.lang.String cidade) throws java.rmi.RemoteException{
    if (enderecosServicePortType == null)
      _initEnderecosServicePortTypeProxy();
    return enderecosServicePortType.getCEP(logradouro, bairro, estado, cidade);
  }
  
  public java.lang.Boolean remEndereco(java.lang.String cep) throws java.rmi.RemoteException{
    if (enderecosServicePortType == null)
      _initEnderecosServicePortTypeProxy();
    return enderecosServicePortType.remEndereco(cep);
  }
  
  
}